<?php
apf_require_class("Bll_BLL");
class Bll_hr_City extends BLL {

    /**
     * 返回城市
     */
    public function get_cities() {
        $result = array();
        $rs = $this->get_city_dao()->find(null,null,1000,0);
        if(empty($rs)) {
            return $result;
        }

        foreach($rs as $v) {
            $result[$v['city_id']] = $v['city_name'];
        }
        return $result;
    }
    /**
     * 获得城市
     * return Dao_Portal_City
     */
    private function get_city_dao(){
        return $this->get_dao('Dao_hr_City');
    }

}